
import { request } from '../utils/http-server';

export function get_user_info(data){
    return request({
        url: '/api/saleUserLogin/getUserInfo',
        method: 'get',
        data
    })
}

export function uploadUserInfo(data){
    return request({
        url: '/api/saleUserLogin/wxUserInfo',
        method: 'post',
        data
    })
}

export function uploadUserAvatar(data){
    return request({
        url: '/api/saleUserLogin/upload/avatar',
        method: 'post',
        data
    })
}

export function modifyNickName(data){
    return request({
        url: '/api/saleUserLogin/modifyNickName',
        method: 'post',
        data
    })
}

export function login(data){
    return request({
        url: '/api/saleUserLogin/login',
        method: 'post',
        data
    })
}



export function logout(data){
    return request({
        url: '/api/saleUserLogin/logout',
        method: 'post',
        data
    })
}

export function getQrcodeList(data){
    return request({
        url: '/api/saleUserLogin/getQrcodeList',
        method: 'get',
        data
    })
}

export function modifyUsrName(data){
    return request({
        url: '/api/saleUserLogin/modifyUsrName',
        method: 'post',
        data
    })
}

export function getQrcode(data){
    return request({
        url: '/api/saleUserLogin/getQrcode',
        method: 'get',
        data
    })
}



export function modifyMobile(data){
    return request({
        url: '/api/saleUserLogin/modifyMobile',
        method: 'post',
        data
    })
}

export function getShopList(data){
    return request({
        url: '/api/saleUserLogin/getShopList',
        method: 'get',
        data
    })
}

export function findRegionByParentCode(data){
    return request({
        url: '/api/shopSaleAddress/shop-sale-address/findRegionByParentCode',
        method: 'get',
        data
    })
}

export function myDataTotal(data){
    return request({
        url: '/api/report/myDataTotal',
        method: 'get',
        data
    })
}

export function modifyUser(data){
    return request({
        url: '/api/saleUserLogin/modifyUser',
        method: 'post',
        data
    })
}

export function reportData(data){
    return request({
        url: '/api/shopReportData/shop-report-data/query',
        method: 'get',
        data
    })
}

export function mineCountData(data){
    return request({
        url: '/api/transCountDay/trans-count-day/countData',
        method: 'get',
        data
    })
}

export function mineCountDataMonth(data){
    return request({
        url: '/api/transCountDay/trans-count-day/countDataMonth',
        method: 'get',
        data
    })
}

export function mineCountDataPage(data){
    return request({
        url: '/api/transCountDay/trans-count-day/countDataPage',
        method: 'get',
        data
    })
}


















